<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMedicalComplicationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_medical_complication', function (Blueprint $table) {
            $table->increments('id')->comment("并发症");
            $table->unsignedInteger('record_id')->comment("关联medical_records_id");
            $table->string('name')->comment("名称");
            $table->unsignedTinyInteger('nature')->default(0)->comment('0没有选定 1阴性, 2 阳性');
            $table->unsignedTinyInteger('type')->nullable()->comment('1临床症状，2专家检查');
            $table->string('remark')->default('')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_medical_complication');
    }
}
